<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
ClosureJavaScriptCompressor (HTML Compressor and Minifier 1.4 API)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="ClosureJavaScriptCompressor (HTML Compressor and Minifier 1.4 API)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClosureJavaScriptCompressor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html" title="interface in com.googlecode.htmlcompressor.compressor"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ClosureJavaScriptCompressor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.googlecode.htmlcompressor.compressor</FONT>
<BR>
Class ClosureJavaScriptCompressor</H2>
<PRE>
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html" title="interface in com.googlecode.htmlcompressor.compressor">Compressor</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>ClosureJavaScriptCompressor</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html" title="interface in com.googlecode.htmlcompressor.compressor">Compressor</A></DL>
</PRE>

<P>
Basic JavaScript compressor implementation using <a href="http://code.google.com/closure/compiler/">Google Closure Compiler</a> 
 that could be used by <A HREF="../../../../com/googlecode/htmlcompressor/compressor/HtmlCompressor.html" title="class in com.googlecode.htmlcompressor.compressor"><CODE>HtmlCompressor</CODE></A> for inline JavaScript compression.
<P>

<P>
<DL>
<DT><B>Author:</B></DT>
  <DD><a href="mailto:serg472@gmail.com">Sergiy Kovalchuk</a></DD>
<DT><B>See Also:</B><DD><A HREF="../../../../com/googlecode/htmlcompressor/compressor/HtmlCompressor.html#setJavaScriptCompressor(com.googlecode.htmlcompressor.compressor.Compressor)"><CODE>HtmlCompressor.setJavaScriptCompressor(Compressor)</CODE></A>, 
<a href="http://code.google.com/closure/compiler/">Google Closure Compiler</a></DL>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#COMPILATION_LEVEL_ADVANCED">COMPILATION_LEVEL_ADVANCED</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#COMPILATION_LEVEL_SIMPLE">COMPILATION_LEVEL_SIMPLE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#COMPILATION_LEVEL_WHITESPACE">COMPILATION_LEVEL_WHITESPACE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#ClosureJavaScriptCompressor()">ClosureJavaScriptCompressor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#ClosureJavaScriptCompressor(com.google.javascript.jscomp.CompilationLevel)">ClosureJavaScriptCompressor</A></B>(com.google.javascript.jscomp.CompilationLevel&nbsp;compilationLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#compress(java.lang.String)">compress</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;source)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The main method that compresses the given source and returns a compressed result.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.google.javascript.jscomp.CompilationLevel</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#getCompilationLevel()">getCompilationLevel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns level of optimization that is applied when compiling JavaScript code.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.google.javascript.jscomp.CompilerOptions</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#getCompilerOptions()">getCompilerOptions</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns options that are used by the Closure compiler.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;com.google.javascript.jscomp.JSSourceFile&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#getExterns()">getExterns</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>JSSourceFile</code> used as a reference during the compression 
 at <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code> level.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#getLoggingLevel()">getLoggingLevel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns logging level used by the Closure compiler.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.google.javascript.jscomp.WarningLevel</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#getWarningLevel()">getWarningLevel</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>WarningLevel</code> used by the Closure compiler</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#isCustomExternsOnly()">isCustomExternsOnly</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if default externs defined inside Closure's jar are ignored 
 and only user defined ones are used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCompilationLevel(com.google.javascript.jscomp.CompilationLevel)">setCompilationLevel</A></B>(com.google.javascript.jscomp.CompilationLevel&nbsp;compilationLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets level of optimization that should be applied when compiling JavaScript code.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCompilerOptions(com.google.javascript.jscomp.CompilerOptions)">setCompilerOptions</A></B>(com.google.javascript.jscomp.CompilerOptions&nbsp;compilerOptions)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets options that will be used by the Closure compiler.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCustomExternsOnly(boolean)">setCustomExternsOnly</A></B>(boolean&nbsp;customExternsOnly)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If set to <code>true</code>, default externs defined inside Closure's jar will be ignored 
 and only user defined ones will be used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setExterns(java.util.List)">setExterns</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;com.google.javascript.jscomp.JSSourceFile&gt;&nbsp;externs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets external JavaScript files that are used as a reference for function declarations if 
 <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code> compression level is used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setLoggingLevel(java.util.logging.Level)">setLoggingLevel</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</A>&nbsp;loggingLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets logging level for the Closure compiler.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setWarningLevel(com.google.javascript.jscomp.WarningLevel)">setWarningLevel</A></B>(com.google.javascript.jscomp.WarningLevel&nbsp;warningLevel)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates the amount of information you want from the compiler about possible problems in your code.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="COMPILATION_LEVEL_SIMPLE"><!-- --></A><H3>
COMPILATION_LEVEL_SIMPLE</H3>
<PRE>
public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>COMPILATION_LEVEL_SIMPLE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor.COMPILATION_LEVEL_SIMPLE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="COMPILATION_LEVEL_ADVANCED"><!-- --></A><H3>
COMPILATION_LEVEL_ADVANCED</H3>
<PRE>
public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>COMPILATION_LEVEL_ADVANCED</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor.COMPILATION_LEVEL_ADVANCED">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="COMPILATION_LEVEL_WHITESPACE"><!-- --></A><H3>
COMPILATION_LEVEL_WHITESPACE</H3>
<PRE>
public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>COMPILATION_LEVEL_WHITESPACE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.googlecode.htmlcompressor.compressor.ClosureJavaScriptCompressor.COMPILATION_LEVEL_WHITESPACE">Constant Field Values</A></DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="ClosureJavaScriptCompressor()"><!-- --></A><H3>
ClosureJavaScriptCompressor</H3>
<PRE>
public <B>ClosureJavaScriptCompressor</B>()</PRE>
<DL>
</DL>
<HR>

<A NAME="ClosureJavaScriptCompressor(com.google.javascript.jscomp.CompilationLevel)"><!-- --></A><H3>
ClosureJavaScriptCompressor</H3>
<PRE>
public <B>ClosureJavaScriptCompressor</B>(com.google.javascript.jscomp.CompilationLevel&nbsp;compilationLevel)</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="compress(java.lang.String)"><!-- --></A><H3>
compress</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>compress</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;source)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html#compress(java.lang.String)">Compressor</A></CODE></B></DD>
<DD>The main method that compresses the given source and returns a compressed result.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html#compress(java.lang.String)">compress</A></CODE> in interface <CODE><A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html" title="interface in com.googlecode.htmlcompressor.compressor">Compressor</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - The source to compress.
<DT><B>Returns:</B><DD>Compressed result.</DL>
</DD>
</DL>
<HR>

<A NAME="getCompilationLevel()"><!-- --></A><H3>
getCompilationLevel</H3>
<PRE>
public com.google.javascript.jscomp.CompilationLevel <B>getCompilationLevel</B>()</PRE>
<DL>
<DD>Returns level of optimization that is applied when compiling JavaScript code.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD><code>CompilationLevel</code> that is applied when compiling JavaScript code.<DT><B>See Also:</B><DD><a href="http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/CompilationLevel.html">CompilationLevel</a></DL>
</DD>
</DL>
<HR>

<A NAME="setCompilationLevel(com.google.javascript.jscomp.CompilationLevel)"><!-- --></A><H3>
setCompilationLevel</H3>
<PRE>
public void <B>setCompilationLevel</B>(com.google.javascript.jscomp.CompilationLevel&nbsp;compilationLevel)</PRE>
<DL>
<DD>Sets level of optimization that should be applied when compiling JavaScript code. 
 If none is provided, <code>CompilationLevel.SIMPLE_OPTIMIZATIONS</code> will be used by default. 
 
 <p><b>Warning:</b> Using <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code> could 
 break inline JavaScript if externs are not set properly.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>compilationLevel</CODE> - Optimization level to use, could be set to <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code>, <code>CompilationLevel.SIMPLE_OPTIMIZATIONS</code>, <code>CompilationLevel.WHITESPACE_ONLY</code><DT><B>See Also:</B><DD><a href="http://code.google.com/closure/compiler/docs/api-tutorial3.html">Advanced Compilation and Externs</a>, 
<a href="http://code.google.com/closure/compiler/docs/compilation_levels.html">Closure Compiler Compilation Levels</a>, 
<a href="http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/CompilationLevel.html">CompilationLevel</a></DL>
</DD>
</DL>
<HR>

<A NAME="getCompilerOptions()"><!-- --></A><H3>
getCompilerOptions</H3>
<PRE>
public com.google.javascript.jscomp.CompilerOptions <B>getCompilerOptions</B>()</PRE>
<DL>
<DD>Returns options that are used by the Closure compiler.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD><code>CompilerOptions</code> that are used by the compiler<DT><B>See Also:</B><DD><a href="http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/CompilerOptions.html">CompilerOptions</a></DL>
</DD>
</DL>
<HR>

<A NAME="setCompilerOptions(com.google.javascript.jscomp.CompilerOptions)"><!-- --></A><H3>
setCompilerOptions</H3>
<PRE>
public void <B>setCompilerOptions</B>(com.google.javascript.jscomp.CompilerOptions&nbsp;compilerOptions)</PRE>
<DL>
<DD>Sets options that will be used by the Closure compiler. 
 If none is provided, default options constructor will be used: <code>new CompilerOptions()</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>compilerOptions</CODE> - <code>CompilerOptions</code> that will be used by the compiler<DT><B>See Also:</B><DD><a href="http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/CompilerOptions.html">CompilerOptions</a></DL>
</DD>
</DL>
<HR>

<A NAME="getLoggingLevel()"><!-- --></A><H3>
getLoggingLevel</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</A> <B>getLoggingLevel</B>()</PRE>
<DL>
<DD>Returns logging level used by the Closure compiler.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD><code>Level</code> of logging used by the Closure compiler</DL>
</DD>
</DL>
<HR>

<A NAME="setLoggingLevel(java.util.logging.Level)"><!-- --></A><H3>
setLoggingLevel</H3>
<PRE>
public void <B>setLoggingLevel</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging">Level</A>&nbsp;loggingLevel)</PRE>
<DL>
<DD>Sets logging level for the Closure compiler.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>loggingLevel</CODE> - logging level for the Closure compiler.<DT><B>See Also:</B><DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/util/logging/Level.html?is-external=true" title="class or interface in java.util.logging"><CODE>Level</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getExterns()"><!-- --></A><H3>
getExterns</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;com.google.javascript.jscomp.JSSourceFile&gt; <B>getExterns</B>()</PRE>
<DL>
<DD>Returns <code>JSSourceFile</code> used as a reference during the compression 
 at <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code> level.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD><code>JSSourceFile</code> used as a reference during compression</DL>
</DD>
</DL>
<HR>

<A NAME="setExterns(java.util.List)"><!-- --></A><H3>
setExterns</H3>
<PRE>
public void <B>setExterns</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;com.google.javascript.jscomp.JSSourceFile&gt;&nbsp;externs)</PRE>
<DL>
<DD>Sets external JavaScript files that are used as a reference for function declarations if 
 <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code> compression level is used. 
 
 <p>A number of default externs defined inside Closure's jar will be used besides user defined ones, 
 to use only user defined externs set <A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCustomExternsOnly(boolean)"><CODE>setCustomExternsOnly(true)</CODE></A>
 
 <p><b>Warning:</b> Using <code>CompilationLevel.ADVANCED_OPTIMIZATIONS</code> could 
 break inline JavaScript if externs are not set properly.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>externs</CODE> - <code>JSSourceFile</code> to use as a reference during compression<DT><B>See Also:</B><DD><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCompilationLevel(com.google.javascript.jscomp.CompilationLevel)"><CODE>setCompilationLevel(CompilationLevel)</CODE></A>, 
<A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCustomExternsOnly(boolean)"><CODE>setCustomExternsOnly(boolean)</CODE></A>, 
<a href="http://code.google.com/closure/compiler/docs/api-tutorial3.html">Advanced Compilation and Externs</a>, 
<a href="http://closure-compiler.googlecode.com/svn/trunk/javadoc/com/google/javascript/jscomp/JSSourceFile.html">JSSourceFile</a></DL>
</DD>
</DL>
<HR>

<A NAME="getWarningLevel()"><!-- --></A><H3>
getWarningLevel</H3>
<PRE>
public com.google.javascript.jscomp.WarningLevel <B>getWarningLevel</B>()</PRE>
<DL>
<DD>Returns <code>WarningLevel</code> used by the Closure compiler
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD><code>WarningLevel</code> used by the Closure compiler</DL>
</DD>
</DL>
<HR>

<A NAME="setWarningLevel(com.google.javascript.jscomp.WarningLevel)"><!-- --></A><H3>
setWarningLevel</H3>
<PRE>
public void <B>setWarningLevel</B>(com.google.javascript.jscomp.WarningLevel&nbsp;warningLevel)</PRE>
<DL>
<DD>Indicates the amount of information you want from the compiler about possible problems in your code.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>warningLevel</CODE> - <code>WarningLevel</code> to use<DT><B>See Also:</B><DD><a href="http://code.google.com/closure/compiler/docs/api-ref.html"></DL>
</DD>
</DL>
<HR>

<A NAME="isCustomExternsOnly()"><!-- --></A><H3>
isCustomExternsOnly</H3>
<PRE>
public boolean <B>isCustomExternsOnly</B>()</PRE>
<DL>
<DD>Returns <code>true</code> if default externs defined inside Closure's jar are ignored 
 and only user defined ones are used.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD><code>true</code> if default externs defined inside Closure's jar are ignored 
 and only user defined ones are used</DL>
</DD>
</DL>
<HR>

<A NAME="setCustomExternsOnly(boolean)"><!-- --></A><H3>
setCustomExternsOnly</H3>
<PRE>
public void <B>setCustomExternsOnly</B>(boolean&nbsp;customExternsOnly)</PRE>
<DL>
<DD>If set to <code>true</code>, default externs defined inside Closure's jar will be ignored 
 and only user defined ones will be used.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>customExternsOnly</CODE> - <code>true</code> to skip default externs and use only user defined ones<DT><B>See Also:</B><DD><A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setExterns(java.util.List)"><CODE>setExterns(List)</CODE></A>, 
<A HREF="../../../../com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html#setCompilationLevel(com.google.javascript.jscomp.CompilationLevel)"><CODE>setCompilationLevel(CompilationLevel)</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClosureJavaScriptCompressor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/googlecode/htmlcompressor/compressor/Compressor.html" title="interface in com.googlecode.htmlcompressor.compressor"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/googlecode/htmlcompressor/compressor/ClosureJavaScriptCompressor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ClosureJavaScriptCompressor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright &#169; 2009-2011 <a href="http://code.google.com/p/htmlcompressor/">Sergiy Kovalchuk</a>. All Rights Reserved.
</BODY>
</HTML>
